<template>
  <div class='mask' v-show="isShow">
    <van-loading size="100px" color="#fc6" vertical>加载中...</van-loading>
  </div>
</template>

<script>
import Vue from 'vue'
import { Loading } from 'vant'
Vue.use(Loading)
export default {
  name: 'loading',
  data () {
    return {
      isShow: false
    }
  }
}
</script>

<style lang="scss" scoped>
.mask{
  position: fixed;
  left:0;
  top:0;
  bottom:0;
  right: 0;
  background-color: rgba(0,0,0,.4);
  z-index:10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
